<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.v-enter,
		.v-leave-to{
			opacity: 0;
			transform: translateX(190px);
		}

		.v-enter-active,
		.v-leave-active{
			transition: all 0.6s ease;
		}
	</style>
</head>
<body>
<div id="app">
	<router-link to="/login">登陆</router-link>
	<router-link to="/register">注册</router-link>
	<transition mode="out-in">
		<router-view></router-view>
	</transition>
</div>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="node_modules/vue-router/dist/vue-router.js"></script>
<script>
var login = {
	template : '<h1>登陆租价</h1>'
}
var register = {
	template : '<h1>注册租价</h1>'
}
var router = new VueRouter({
	routes : [
		{ path : '/', redirect : '/login'},
		{ path : '/login', component : login},
		{ path : '/register', component : register}
	]
})
var vm = new Vue({
	el : '#app',
	data : {},
	router
})
</script>
</body>
</html>